﻿using System;
using System.Runtime.Serialization;

namespace NCMIS.ObjectModel.MetaData
{
    /// <summary>
    /// Specifies how the repository must process file-able child- or descendant-objects.
    /// </summary>
    [DataContract(Namespace = CmisNs.Cmis)]
    public enum UnfileObjects
    {
        /// <summary>
        /// Unfile all fileable objects.
        /// </summary>
        [EnumMember(Value = "unfile")]
        Unfile,

        /// <summary>
        /// Delete all fileable non-folder objects whose only parent-folders are in the current folder tree.
        /// Unfile all other fileable non-folder objects from the current folder tree.
        /// </summary>
        [EnumMember(Value = "deletesinglefiled")]
        Deletesinglefiled,

        /// <summary>
        /// Delete all fileable objects.
        /// </summary>
        [EnumMember(Value = "delete")]
        Delete,
    }
}
